package com.作业.Day3;

import jdk.nashorn.internal.ir.CallNode;

import java.util.Scanner;

public class Homework7 {
    /**
     * 使用数组实现金额
     */


    public static void main(String[] args) {
        Scanner scanner=   new Scanner(System.in);
        Double []a=new Double[5];
        System.out.println("请输入会员输入本月的消费的记录");
        for (int i = 0; i <a.length ; i++) {
            double v = scanner.nextDouble();
            a[i]=v;
        }
        //输出
        System.out.println("序号         金额(元)");
        for (int i = 0; i < a.length; i++) {
            System.out.print(i+1+"         ");
            System.out.println(a[i]);
        }
    }
}
